import { createRouter, createWebHistory } from 'vue-router'


export const Routes= [
  {
    path:'/login',
    name:'Login',
    component:() => import('../views/login/index.vue')
  },
  {
    path: '/403',
    component:()=>import('../views/errorPage/403.vue')
  },
  {
    path: '/*',
    component:()=>import('../views/errorPage/404.vue')
  },
  {
    path: '/',
    name: 'home-m',
    component: () => import('../views/layout/index.vue'),
    redirect:'/home',
    children:[
      {
        path:'home',
        name:'Home',
        meta:{},
        component:() => import('../views/manager/HomeView.vue')
      },
      {
        path:'score_Msg',
        name:'Score_Msg',
        meta:{},
        component:() => import('../views/manager/Score_Msg.vue')
      },
      {
        path:'stu_Msg',
        name:'Stu_Msg',
        meta:{},
        component:() => import('../views/manager/Stu_Msg.vue')
      },
      {
        path:'class_Msg',
        name:'Class_Msg',
        meta:{},
        component:() => import('../views/manager/Class_Msg.vue')
      },
      {
        path:'course_Msg',
        name:'Course_Msg',
        meta:{},
        component:() => import('../views/manager/Course_Msg.vue')
      },
      {
        path:'exam_Msg',
        name:'Exam_Msg',
        meta:{},
        component:() => import('../views/manager/Exam_Msg.vue')
      },
      {
        path:'teacher_Msg',
        name:'Teacher_Msg',
        meta:{},
        component:() => import('../views/manager/Teacher_Msg.vue')
      },
      {
        path:'system_Setting',
        name:'System_Setting',
        meta:{},
        component:() => import('../views/manager/System_Settings.vue')
      },
      {
        path:'score_Analyse',
        name:'Score_Analyse',
        meta:{},
        component:() => import('../views/manager/Score_Analyse.vue')
      }]
  },
  {
    path: '/',
    name: 'home-s',
    component: () => import('../views/layout/layout-s.vue'),
    redirect:'/home-s',
    children:[
      {
        path:'home-s',
        name:'home-s',
        meta:{},
        component:() => import('../views/student/Home_s.vue')
      },
      {
        path:'score_Analyse_s',
        name:'Score_Analyse_s',
        meta:{},
        component:() => import('../views/student/Score_Analyse_s.vue')
      },
      {
        path:'english_Score_s',
        name:'English_Score_s',
        meta:{},
        component:() => import('../views/student/English_Score.vue')
      },
      {
        path:'math_Score_s',
        name:'Math_Score_s',
        meta:{},
        component:() => import('../views/student/Math_Score.vue')
      },
      {
        path:'chinese_Score_s',
        name:'Chinese_Score_s',
        meta:{},
        component:() => import('../views/student/Chinese_Score.vue')
      },
      {
        path:'total_Score_s',
        name:'Total_Score_s',
        meta:{},
        component:() => import('../views/student/Total_Score.vue')
      },
      {
        path:'elective_Course_Score_s',
        name:'Elective_Course_Score_s',
        meta:{},
        component:() => import('../views/student/Elective_Course_Score.vue')
      },
      {
        path:'select_Course_s',
        name:'Select_Course_s',
        meta:{},
        component:() => import('../views/student/Select_Course.vue')
      },
      {
        path:'person_s',
        name:'Person_s',
        meta:{},
        component:() => import('../views/student/Person_s.vue')
      },
    ]
  },
  {
    path: '/',
    name: 'home-t',
    component: () => import('../views/layout/layout-t.vue'),
    redirect:'/home-t',
    children:[
      {
        path:'home-t',
        name:'home',
        meta:{},
        component:() => import('../views/teacher/Home_t.vue')
      },
      {
        path:'score_Analyse_t',
        name:'Score_Analyse_t',
        meta:{},
        component:() => import('../views/teacher/Score_Analyse_t.vue')
      },
      {
        path:'english_Score_t',
        name:'English_Score',
        meta:{},
        component:() => import('../views/teacher/English_Score.vue')
      },
      {
        path:'math_Score_t',
        name:'Math_Score',
        meta:{},
        component:() => import('../views/teacher/Math_Score.vue')
      },
      {
        path:'chinese_Score_t',
        name:'Chinese_Score',
        meta:{},
        component:() => import('../views/teacher/Chinese_Score.vue')
      },
      {
        path:'total_Score_t',
        name:'Total_Score',
        meta:{},
        component:() => import('../views/teacher/Total_Score.vue')
      },
      {
        path:'elective_Course_Score_t',
        name:'Elective_Course_Score',
        meta:{},
        component:() => import('../views/teacher/Elective_Course_Score.vue')
      },
      {
        path:'stu_Msg_t',
        name:'stu_msg',
        meta:{},
        component:() => import('../views/teacher/Stu_Msg.vue')
      },
      {
        path:'person_t',
        name:'Person_t',
        meta:{},
        component:() => import('../views/teacher/Person_t.vue')
      },
    ]
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes:Routes
})

export default router
